package com.admin4j.server.system.mapper;

import com.admin4j.server.system.entity.SysPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 资源权限表 Mapper 接口
 * </p>
 *
 * @author andanyang
 * @since 2023-12-19
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    List<SysPermission> allPermissionUri();

    List<SysPermission> getPermissionsByUserId(Long userId);
}
